package com.lanou3g.code0409.common;

/**
 * Created by dllo on 18/4/9.
 */
public class TestChar {
    public static void main(String[] args) {
         char a = 'A';
         int a1 = 65;
         char b = (char)65;  //把65 强制 类型转换成char
        int b1 = (int)'A';
         System.out.println(a);
        System.out.println(b1);

        char d = 'D';
        char e = 'E';
         char f = (char)(e+10);  // char 类型可以算加法
        System.out.println((char) 26472);
        System.out.println(d > e);

        for (char c = 'A';c<= 'Z';c++){
            String letter = String.valueOf(c);
            System.out.println(c);
        }


//        for (int i = 65;i < 65+26; i++){
//            System.out.println((char)i);
//
//        }
//




    }
}
